import api from '@/http/index'

/* 列表 */
export const GetOrderList = (data) => {
    return new Promise((resolve, reject) => {
        api.post('/api/MedicalOrdersDoc/GetOrderList', data).then((res) => {
            resolve(res);
        }).catch(err => {
            reject(err)
        })
    });
};
// 退款
export const AdDoctorRefund = (data) => {
    return new Promise((resolve, reject) => {
        api.post('/api/MedicalOrdersDoc/AdDoctorRefund', data).then((res) => {
            resolve(res);
        }).catch(err => {
            reject(err)
        })
    });
};
// 修改
export const EditOrder = (data) => {
    return new Promise((resolve, reject) => {
        api.post('/api/MedicalOrdersDoc/EditOrder', data).then((res) => {
            resolve(res);
        }).catch(err => {
            reject(err)
        })
    });
};